#pragma once
#include<iostream>
using namespace std;

class date
{
private:
	int _year;
	int _month;
	int _day;
public:
	date(int year = 0, int month = 1, int day = 1);

	void print();
	int GetMonthDay(int year, int month);
	bool operator<(const date& d) const;
	bool operator>(const date& d) const;
	bool operator>=(const date& d) const;
	bool operator<=(const date& d) const;
	bool operator==(const date& d) const;
	bool operator!=(const date& d) const;
	date& operator=(const date& d);

	date& operator+=(int day);
	date& operator-=(int day);
	date operator+(int day)const;
	date operator-(int day)const;

	date& operator++();
	date operator++(int);

	date& operator--();
	date operator--(int);

	int operator-(const date& d) const;

	void PrintWeekDay() const;

};

bool operator<(const date& d1,const date& d2);
